<template>
    <div class="Setting">
        <div class="content">
            <div class="quit-account" @click="QuitAccount">
                <p>退出账号</p>
            </div>
        </div>
    </div>
  </template>
  
  <script>
  import { reactive, toRefs } from 'vue';
  import './index.scss';
  import Taro from '@tarojs/taro'
  export default {
    name: 'Setting',
    setup(){
      const state = reactive({
        
      });
      const QuitAccount = () => {
        Taro.clearStorageSync();
        Taro.reLaunch({
          url: `/pages/user/index?activeIndex=${2}`
        })
        console.log(111)
      }
      return {
        QuitAccount,
        ...toRefs(state)
      }
    }
  }
  </script>